package com.example.featuresdk.theme

import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.dp

//Use the default shapes from compose material
private val DefaultShapes = Shapes(
//    small = RoundedCornerShape(4.dp),
//    medium = RoundedCornerShape(4.dp),
//    large = RoundedCornerShape(0.dp)
)

//Define custom shapes e.g. xlarge
@Immutable
data class DemoShapes(
    val small: Shape = DefaultShapes.small,
    val medium: Shape = DefaultShapes.medium,
    val large: Shape = DefaultShapes.large,
    val xlarge: Shape = RoundedCornerShape(0.dp)
)

//Create a CompositionLocal key that can be provided using CompositionLocalProvider.
val LocalDemoShapes = staticCompositionLocalOf { DemoShapes() }
